package com.designpattern.softwaredesignpatternstudy.pattern.proxy.application;

import javax.swing.*;
import java.awt.*;

/**
 * @Author: Jiangxx
 * @Date: 2022/03/11
 * @Description:
 */
public class WySpecialty extends JFrame implements Specialty{

    public WySpecialty() {
        super("WySpecialty proxy");
        this.setLayout(new GridLayout(1,1));
        JLabel jLabel = new JLabel(new ImageIcon("src/main/resources/images/WuyuanSpecialty.jpg"));
        this.add(jLabel);
        this.pack();
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    @Override
    public void display() {
        this.setVisible(true);
    }
}
